<?php

use Illuminate\Http\Request;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

Route::group(['prefix' => 'admin', 'namespace' => 'Admin'], function ($api) {

	Route::post('login','UserController@login');

	Route::group(['middleware' => 'token_verify'], function () {

		Route::group(['prefix' => 'heTong'], function ($api) {

			Route::get('list','UserController@heTongList');

			Route::post('add','UserController@addHeTong');

			Route::get('get','UserController@getHeTongInfo');

			Route::post('edit','UserController@editHeTong');

			Route::post('del','UserController@delHeTong');
		});

	});
});
//
